package com.mall.dao;

import com.mall.entity.ZhaoTongMallOrder;
import com.mall.util.PageQueryUtil;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ZhaoTongMallOrderMapper {
    int deleteByPrimaryKey(Long orderId);

    int insert(ZhaoTongMallOrder record);

    int insertSelective(ZhaoTongMallOrder record);

    ZhaoTongMallOrder selectByPrimaryKey(Long orderId);

    ZhaoTongMallOrder selectByOrderNo(String orderNo);

    int updateByPrimaryKeySelective(ZhaoTongMallOrder record);

    int updateByPrimaryKey(ZhaoTongMallOrder record);

    List<ZhaoTongMallOrder> findZhaoTongMallOrderList(PageQueryUtil pageUtil);

    int getTotalZhaoTongMallOrders(PageQueryUtil pageUtil);

    List<ZhaoTongMallOrder> selectByPrimaryKeys(@Param("orderIds") List<Long> orderIds);

    int checkOut(@Param("orderIds") List<Long> orderIds);

    int closeOrder(@Param("orderIds") List<Long> orderIds, @Param("orderStatus") int orderStatus);

    int checkDone(@Param("orderIds") List<Long> asList);
}
